package com.fast.alden.data.repo;

import com.fast.alden.data.model.SysApiResourceRole;

import java.util.List;

public interface SysApiResourceRoleRepository extends BaseEntityRepository<SysApiResourceRole> {
    void deleteByRoleIdIn(List<Long> roleIds);

    void deleteByApiResourceIdIn(List<Long> apiResourceIds);

    List<SysApiResourceRole> findAllByRoleIdIsAndApiResourceIdIn(Long roleId, List<Long> apiResourceIds);

    List<SysApiResourceRole> findAllByRoleIdIn(List<Long> roleIds);

    List<SysApiResourceRole> findAllByApiResourceIdIn(List<Long> apiResourceIds);
}